><

Creating rollover states



When you create a rollover state, you select a mouse action which activates the state (except for the first state in a rollover, which is always the Normal state).

To create a rollover state:

1 Select the slice or image map area to which you want to add the rollover.

Note: When creating a slice or image map area for a rollover, use a layer-based slice or a layer-based image map area. This is recommended because the dimensions of a layer's content may change in the course of creating a rollover.

2 In the Rollover palette, create a new state:

  • Click the New State button () at the bottom of the palette.
  • Choose New State from the Rollover palette menu.

  • The new rollover state is identical to the state immediately preceding it, until you make modifications to the image using the Layers palette.

    3 Use the default rollover state assigned by ImageReady, or select a rollover state from the pop-up menu above the rollover thumbnail:

  • Over to define the rollover state when the Web viewer rolls over the slice or image map area with the mouse while the mouse button is not pressed. (Over is automatically selected for the second rollover state.)
  • Down to define the rollover state when the Web viewer presses the mouse button on the slice or image map area. (This state appears as long as the viewer keeps the mouse button pressed down on the area.)
  • Click to define the rollover state when the Web viewer clicks the mouse on the slice or image map area. (This state appears after the viewer clicks the mouse and remains until the viewer activates another rollover state.)
  • Out to define the rollover state when the Web viewer rolls the mouse out of the slice or image map area. (The Normal state usually serves this purpose.)
  • Up to define the rollover state when the Web viewer releases the mouse button over the slice or image map area. (The Over state usually serves this purpose.)

  • Note: Different Web browsers, or different versions of a browser, may process clicks and double-clicks differently. For example, some browsers leave the slice in the Click state after a click, and in the Up state after a double-click; other browsers use the Up state only as a transition into the Click state, regardless of single- or double-clicking. To ensure your Web page will function correctly, be sure to preview rollovers in various Web browsers.

  • Custom to define a new rollover state. (You must create JavaScript code and add it to the HTML file for the Web page in order for the Custom rollover option to function. See a JavaScript manual for more information.)
  • None to preserve the current state of the image for later use as a rollover state. (A state designated as None will not be displayed on the Web page.)

  • The Rollover States pop-up menu displays only the rollover states that have not yet been used for the selected slice or image map area (with the exception of the None and Custom states, which are always available and can be used repeatedly). You can redefine rollover states as you work (with the exception of the Normal state).

    4 Modify the image for the rollover state using the Layers palette.


    Designing Web Pages > Working with rollovers (ImageReady) > Creating rollover states